SftTree/NET 2.0

OnHeaderClicked Method, SftTree Class

Softel vdm, Inc.

Raises the HeaderClicked event.

Syntax      SftTree Class (Softelvdm.SftTreeNET)

VB   

Protected Overridable Sub OnHeaderClicked( ByVal e As HeaderClickedEventArgs )

C#   

protected virtual void OnHeaderClicked( HeaderClickedEventArgs e );

C++   

protected: virtual void OnHeaderClicked( HeaderClickedEventArgs^ e );

e

The event data.

Comments

The OnHeaderClicked method raises the HeaderClicked event.

Raising an event invokes the event handler through a delegate.

The OnHeaderClicked method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

When overriding OnHeaderClicked in a derived class, make sure to call the base class's OnHeaderClicked method so that registered delegates receive the event.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com